home *** CD-ROM | disk | FTP | other *** search
/ An Introduction to Progr…l Basic 6.0 (4th Edition) / An Introduction to Programming using Visual Basic 6.0.iso / COMMON / TOOLS / VB / CABINETS / MSDAO350.CAB / icontrols / Data / DataRow.class (.txt) < prev    next >
Encoding:
Java Class File  |  1998-01-08  |  1.4 KB  |  27 lines

  1. package icontrols.Data;
  2.  
  3. import com.ms.wd.util.Debug;
  4.  
  5. public class DataRow {
  6.    private int m_displayIndex = 0;
  7.    private Object m_bookmark = null;
  8.  
  9.    public String toString() {
  10.       return this.getClass().getName() + "[" + DataProvider.bookmarkToLong(this.m_bookmark) + ", " + this.m_displayIndex + "]";
  11.    }
  12.  
  13.    protected DataRow(int displayIndex, Object bookmark) {
  14.       Debug.assert(bookmark != null, "DataRow without bookmark!");
  15.       this.m_bookmark = bookmark;
  16.       this.m_displayIndex = displayIndex;
  17.    }
  18.  
  19.    public Object getBookmark() {
  20.       return this.m_bookmark;
  21.    }
  22.  
  23.    public int getDisplayIndex() {
  24.       return this.m_displayIndex;
  25.    }
  26. }
  27.